// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class ReportRecord266 : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<ReportRecord266, MasterDbContextLocator>
    {

        public long RptId { get; set; }
        public int? RptType { get; set; }
        public string RptIdStr { get; set; }
        public DateTime? RptTime { get; set; }
        public string dtuId { get; set; }
        public string dtuAlias { get; set; }
        public int? TIMES { get; set; }
        public DateTime? DATECLOCK { get; set; }
        public int? SOURCEORI { get; set; }
        public int? SOURCE { get; set; }
        public string ALARMStr { get; set; }
        public int? ALARM { get; set; }
        public double? VPRO { get; set; }
        public string CCID { get; set; }
        public double? VBAT { get; set; }
        public double? VL1 { get; set; }
        public double? VL2 { get; set; }
        public double? VL3 { get; set; }
        public int? RFSTA { get; set; }
        public int? CSQ { get; set; }
        public double? LHIG { get; set; }
        public double? LLOW { get; set; }
        public double? L1CAL { get; set; }
        public double? L2CAL { get; set; }
        public double? L3CAL { get; set; }
        public double? BATHIG { get; set; }
        public double? BATLOW { get; set; }
        public double? BATCAL { get; set; }
        public double? PROCAL { get; set; }
        public int? CMODE { get; set; }
        public int? RS485ID { get; set; }
        public string SERVERNAME { get; set; }
        public string DNSIP { get; set; }
        public int? SERVERPORT { get; set; }
        public string APNNAME { get; set; }
        public string APNUSER { get; set; }
        public string APNPASS { get; set; }
        public string RF433ID { get; set; }
        public string LOCALID { get; set; }
        public string VERSION { get; set; }
        public int? STIMES { get; set; }
        public int? ETIMES { get; set; }
        public DateTime? STARTTIME { get; set; }
        public DateTime? STOPTIME { get; set; }
        public bool? BMainsFail { get; set; }
        public bool? BBattVoltLow { get; set; }
        public bool? BGenCheat { get; set; }
        public bool? BMainsDetectFault { get; set; }
        public bool? BBattDetectFault { get; set; }
        public bool? BGenVoltLow { get; set; }
        public bool? BGenVoltHigh { get; set; }
        public bool? B433CommFault { get; set; }
        public int? AreaId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string CompanyCode { get; set; }
        public string CompanyName { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
        public string BaseStationCode { get; set; }
        public string BaseStationName { get; set; }
        public double? Current1 { get; set; }
        public double? Current2 { get; set; }
        public double? Current3 { get; set; }
        public int? Current1CAL { get; set; }
        public int? Current2CAL { get; set; }
        public int? Current3CAL { get; set; }
        public string BaseStationTTCode { get; set; }
        public double? ENERGY_KWH { get; set; }
        public double? EnvTemp { get; set; }
        public double? EnvHumi { get; set; }
        public bool? BEnvTempHigh { get; set; }
        public bool? BEnvTempLow { get; set; }
        public bool? BEnvHumiHigh { get; set; }
        public bool? BEnvHumiLow { get; set; }
        public bool? BDoorExpception { get; set; }
        public bool? BWaterExpception { get; set; }
        public bool? BFireExpception { get; set; }
    
        public void Configure(EntityTypeBuilder<ReportRecord266> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
            entityBuilder.HasKey(e => e.RptId);

            entityBuilder.Property(e => e.ALARMStr).HasMaxLength(500);

                entityBuilder.Property(e => e.APNNAME).HasMaxLength(50);

                entityBuilder.Property(e => e.APNPASS).HasMaxLength(50);

                entityBuilder.Property(e => e.APNUSER).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.BaseStationCode).HasMaxLength(50);

                entityBuilder.Property(e => e.BaseStationName).HasMaxLength(200);

                entityBuilder.Property(e => e.BaseStationTTCode).HasMaxLength(50);

                entityBuilder.Property(e => e.CCID).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyName).HasMaxLength(200);

                entityBuilder.Property(e => e.DATECLOCK).HasColumnType("datetime");

                entityBuilder.Property(e => e.DNSIP).HasMaxLength(200);

                entityBuilder.Property(e => e.LOCALID).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.RF433ID).HasMaxLength(50);

                entityBuilder.Property(e => e.RptIdStr).HasMaxLength(50);

                entityBuilder.Property(e => e.RptTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.SERVERNAME).HasMaxLength(200);

                entityBuilder.Property(e => e.STARTTIME).HasColumnType("datetime");

                entityBuilder.Property(e => e.STOPTIME).HasColumnType("datetime");

                entityBuilder.Property(e => e.VERSION).HasMaxLength(50);

                entityBuilder.Property(e => e.dtuAlias).HasMaxLength(100);

                entityBuilder.Property(e => e.dtuId).HasMaxLength(50);
        }

    }
}

